/**
 * Author: Dmitry Ustimov
 * Date: 5/14/13
 * Time: 10:00 PM
 */

package com.gmail.dmitryustimov.ms.java7.mediator.classic.example.classic_example2;

public class Demo {

    public static void main(String[] args) {
        ApplicationMediator mediator = new ApplicationMediator();

        Colleague desktop = new DesktopColleague(mediator);
        Colleague mobile = new MobileColleague(mediator);

        mediator.addColleague(desktop);
        mediator.addColleague(mobile);

        desktop.send("Hello World");
        mobile.send("Hello");
    }
}
